package com.bcht.demo.spring.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

  @RequestMapping("/index")
    public  String index(){
        return "index";
    }

    @RequestMapping("/index2")
    public  String index2(){
        int i = 1/0;
        return "index";
    }

}
